package com.eshop.modules.shop.service.dto;

import com.eshop.annotation.Query;

public class SystemStoreStaffQueryCriteria
{
    @Query(type = Query.Type.INNER_LIKE)
    private String staffName;
    @Query(type = Query.Type.INNER_LIKE)
    private String nickname;
    
    public String getStaffName() {
        return this.staffName;
    }
    
    public String getNickname() {
        return this.nickname;
    }
    
    public void setStaffName(final String staffName) {
        this.staffName = staffName;
    }
    
    public void setNickname(final String nickname) {
        this.nickname = nickname;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof SystemStoreStaffQueryCriteria)) {
            return false;
        }
        final SystemStoreStaffQueryCriteria other = (SystemStoreStaffQueryCriteria)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$staffName = this.getStaffName();
        final Object other$staffName = other.getStaffName();
        Label_0065: {
            if (this$staffName == null) {
                if (other$staffName == null) {
                    break Label_0065;
                }
            }
            else if (this$staffName.equals(other$staffName)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$nickname = this.getNickname();
        final Object other$nickname = other.getNickname();
        if (this$nickname == null) {
            if (other$nickname == null) {
                return true;
            }
        }
        else if (this$nickname.equals(other$nickname)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof SystemStoreStaffQueryCriteria;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $staffName = this.getStaffName();
        result = result * 59 + (($staffName == null) ? 43 : $staffName.hashCode());
        final Object $nickname = this.getNickname();
        result = result * 59 + (($nickname == null) ? 43 : $nickname.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "SystemStoreStaffQueryCriteria(staffName=" + this.getStaffName() + ", nickname=" + this.getNickname() + ")";
    }
}
